package org.zfes.snowier.cloud.zbss.pmp.dto;
import java.io.Serializable;

public class PmpTasksCreateDto implements Serializable{

	private static final long serialVersionUID = 1L;
	
	public PmpTasksCreateDto() {}

	//<-------------------------------------------->
 

	@javax.validation.constraints.NotNull(message="所属项目不能为空")
	  private java.lang.Long projectId;
	
	//D#1来自需求，2 不是来自需求#
	@javax.validation.constraints.NotNull(message="是否来自需求不能为空")
	  private java.lang.Byte fromRequire;
	
	  private java.lang.Long requireId;
	
	@javax.validation.constraints.NotBlank(message="任务名称不能为空")
	@javax.validation.constraints.NotNull(message="任务名称不能为空")
	@org.hibernate.validator.constraints.Length(min=0,max=255,message="任务名称长度不能大于255")
	  private java.lang.String taskName;
	  private java.lang.Long chargeUserId;
	  private java.util.Date expiryTime;
	  private java.lang.Integer assignHours;
	 @javax.validation.constraints.NotNull(message="难度系数不能为空")
	  private java.lang.Long difficultyScoreId;
	
	 //需求只在当前版本--任务可以自由选择版本
	 private java.lang.Long projectVersionId;
	  private java.lang.Byte priority;
	  
	  private java.lang.String taskDetail;
	//<-------------------------------------------->
	public PmpTasksCreateDto setProjectId(java.lang.Long projectId){
	 this.projectId=projectId;
	 return this;
	}
	public java.lang.Long getProjectId(){
		return this.projectId;
	}
	public PmpTasksCreateDto setFromRequire(java.lang.Byte fromRequire){
	 this.fromRequire=fromRequire;
	 return this;
	}
	public java.lang.Byte getFromRequire(){
		return this.fromRequire;
	}
	public PmpTasksCreateDto setRequireId(java.lang.Long requireId){
	 this.requireId=requireId;
	 return this;
	}
	public java.lang.Long getRequireId(){
		return this.requireId;
	}
	public PmpTasksCreateDto setTaskName(java.lang.String taskName){
		this.taskName=taskName==null?null:taskName.trim();
	 return this;
	}
	public java.lang.String getTaskName(){
		return this.taskName;
	}

	public PmpTasksCreateDto setChargeUserId(java.lang.Long chargeUserId){
	 this.chargeUserId=chargeUserId;
	 return this;
	}
	public java.lang.Long getChargeUserId(){
		return this.chargeUserId;
	}
	
	public PmpTasksCreateDto setExpiryTime(java.util.Date expiryTime){
	 this.expiryTime=expiryTime;
	 return this;
	}
	public java.util.Date getExpiryTime(){
		return this.expiryTime;
	}
	public PmpTasksCreateDto setAssignHours(java.lang.Integer assignHours){
	 this.assignHours=assignHours;
	 return this;
	}
	public java.lang.Integer getAssignHours(){
		return this.assignHours;
	}
	
	public PmpTasksCreateDto setDifficultyScoreId(java.lang.Long difficultyScoreId){
	 this.difficultyScoreId=difficultyScoreId;
	 return this;
	}
	public java.lang.Long getDifficultyScoreId(){
		return this.difficultyScoreId;
	}
	
	
	public PmpTasksCreateDto setTaskDetail(java.lang.String taskDetail){
		this.taskDetail=taskDetail==null?null:taskDetail.trim();
	 return this;
	}
	public java.lang.String getTaskDetail(){
		return this.taskDetail;
	}
	public java.lang.Long getProjectVersionId() {
		return projectVersionId;
	}
	public PmpTasksCreateDto setProjectVersionId(java.lang.Long projectVersionId) {
		this.projectVersionId = projectVersionId;
		 return this;
	}
	public java.lang.Byte getPriority() {
		return priority;
	}
	public PmpTasksCreateDto setPriority(java.lang.Byte priority) {
		this.priority = priority;
		 return this;
	}
}
